-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update keymap on keymap change #1164
base: main
Are you sure you want to change the base?
Conversation
Sorry for the delay, will review later (maybe after 4.0.0 is released): when I investigated updating the layout on keymap change, I notice some issues due to the fact that the code does not handle XKB, which meant in my case I would get a lot of keymap changes because of the switch between the events sent by my physical keyboard, and the XTest keyboard (which use different layouts). I realize that my use case might be special (multiple physical keyboards with different layouts), so maybe that's not a valid reason for not updating on change. The alternative might be proper XKB support, but |
Conflict, okay... In retrospect, it isn't a very good idea to use inheritance all the time. In fact it's forbidden to override/define anything other than Edit: okay, thread inheritance is not my fault. The |
b4f456c
to
6744da6
Compare
6744da6
to
92a58c1
Compare
Rebased to latest master. Remarks:
in any case, some investigation is needed. pull request is not ready. Actually, I think a possibility is to suppress the whole keyboard instead of just the subset of keys that are used for steno using |
Summary of changes
Listens for
XMappingEvent
s and call_update_keymap
whenever the keymap changes.Closes #967. Might also fix #650.
Relies on the other pull request for
self._display_lock
.Problem: for some reason, it refreshes the key map every time I use a different keyboard (in case I have more than one keyboard plugged in the machine -- which is usually the case with the built-in keyboard and a steno keyboard)
Pull Request Checklist